package com.scott.ch170.entity;

/**
 * @author 黄后林
 * @version 1.0
 * @note
 * @date 2021-12-18 23:11:35
 */
public class Child extends Parent {

    private Integer age;

    public Child(String name, Integer age) {
        super(name);
        this.age = age;
    }

    public Integer getAge() {
        return age;
    }

    @Override
    public String toString() {
        return "Child{" +
                "age=" + age +
                ", name='" + getName() + '\'' +
                '}';
    }
}
